home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / win_utl2 / switch2e.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-06-07  |  1KB  |  41 lines

  1. @echo off
  2. cls
  3. echo *******************************************************************************
  4. echo *                                                                             *
  5. echo *                            Switch 2.0 Install                               *
  6. echo *                            Copyright 1994                                   *
  7. echo *                                                                             *
  8. echo *******************************************************************************
  9. if NOT %1=="" goto second
  10. echo First Parameter must be the name of the directory to install Switch 2.0
  11. echo .
  12. :second
  13. if NOT %2=="" goto install
  14. echo Second Parameter must be the name of your Microsoft Windows directory.
  15. goto leave
  16. :install
  17. echo Copying Switch.exe to %1....
  18. copy switch.exe %1 > NUL
  19. if EXIST %1\switch.exe goto help
  20. echo ERROR!  Incomplete installation - could not copy Switch.exe to %1
  21. del %1 > NUL
  22. goto err
  23. :help
  24. echo Copying Switch.hlp to %1....
  25. copy switch2.hlp %1 > NULL
  26. if Exist %1\switch2.hlp goto bwcc
  27. echo ERROR!  Incomplete installation - could not copy Switch.hlp to %1
  28. goto err
  29. :bwcc
  30. echo Copying Bwcc.dll to %2\system....
  31. copy bwcc.dll %2\system >NULL
  32. if Exist %2\system\bwcc.dll goto exit
  33. echo ERROR!  Incomplete installation - could not copy BWCC.DLL to %2\system
  34. goto err
  35. :exit
  36. echo Installation Successful
  37. goto leave
  38. :err
  39. echo Please check to see if %1 and %2\system directories exist.
  40. :leave
  41.